<?php

class Message_Widget_Browse_Profile_Sent extends Nuo_Widget
{
	function execute()
	{
		$table = Nuo::getTable('message');

		$select = $table -> select();

		$mainResource = Nuo::getVar('mainResource');

		$select -> where('poster_id=?', $mainResource -> getItemId());

		$paging = Nuo_Paging::factory($select);

		return $this -> render(array(
			'paging' => $paging,
			'resource' => $mainResource
		));
	}

}
